package com.fable.dal.mapper;

import com.fable.dal.model.ProductAttributeRelationDO;
import com.fable.dal.model.ProductAttributeRelationQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for ProductAttributeRelation.
 */
public interface ProductAttributeRelationMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(ProductAttributeRelationQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ProductAttributeRelationQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ProductAttributeRelationDO record);

    /**
     * insert selective.
     */
    int insertSelective(ProductAttributeRelationDO record);

    /**
     * select by query condition.
     */
    List<ProductAttributeRelationDO> selectByQuery(ProductAttributeRelationQuery query);

    /**
     * select by primary key.
     */
    ProductAttributeRelationDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") ProductAttributeRelationDO record, @Param("query") ProductAttributeRelationQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") ProductAttributeRelationDO record, @Param("query") ProductAttributeRelationQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ProductAttributeRelationDO record);
}